package com.qyer.lxp.model.book.parameter;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * Created by jiangping on 16/7/1.
 */
@XmlRootElement(name = "book-question")
@XmlAccessorType(XmlAccessType.FIELD)
public class BookQuestion implements Serializable{
    private static final long serialVersionUID = 4711944544901980590L;

    /**
     * 问题 id
     */
    @XmlElement(name = "question-id")
    private String questionId;

    /**
     * 答案
     */
    private String answer;

    /**
     * 如果是选择型的预订问题,需要回传用户选择的答案
     */
    @XmlElementWrapper(name = "answer-list")
    @XmlElement(name = "answer")
    private List<Answer> answers;
}
